<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!-- import CSS -->
  <link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
</head>
<body>
<div id="app">
  <template>
    <h3>表格练习:员工列表</h3>
    <el-table
            :data="arr"
            style="width: 100%">
      <!--prop-->
      <el-table-column
              prop="title"
              label="型号"
              width="180">
      </el-table-column>
      <el-table-column
              prop="price"
              label="价格"
              width="180">
      </el-table-column>
      <el-table-column
              prop="num"
              label="库存">
      </el-table-column>
    </el-table>
  </template>
</div>
</body>
<!-- import Vue before Element -->
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
 let v = new Vue({
    el: '#app',
    data: function() {
      return {
        arr:[{title:"小米手机",price:"3000",num:100},
          {title:"oppo手机",price:"4000",num:200},
          {title:"华为手机",price:"5000",num:300}]
      }
    },
   methods:{

   }
  })
</script>
</html>